<%@page import="java.util.List"%>
<%@page import="com.jfinal.plugin.activerecord.Page"%>
<%@page import="com.hongye.app.model.GoodsModel"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" isELIgnored="false"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!doctype html>
<html class="fixed">

	<head>

		<!-- Basic -->
		<meta charset="UTF-8">
		<meta http-equiv="refresh" content="120">
		<meta name="keywords" content="HTML5 Admin Template" />
		<meta name="description" content="Porto Admin - Responsive HTML5 Template">
		<meta name="author" content="okler.net">

		<!-- Mobile Metas -->
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />

		<!-- Web Fonts  -->

		<!-- Vendor CSS -->
		<link rel="stylesheet" href="../admin//css/bootstrap.css" />

		<link rel="stylesheet" href="../admin//css/font-awesome/css/font-awesome.css" />
        <link rel="stylesheet" href="../admin//css/select2.css" />
		<!-- Theme CSS -->
		<link rel="stylesheet" href="../admin//css/theme.css" />

		<!-- Skin CSS -->
		<link rel="stylesheet" href="../admin//css/default.css" />
		<link rel="stylesheet" href="../admin//css//lifocuscolor/style.css" />

		<!-- Theme Custom CSS -->
		
		<script src="../admin//js/modernizr.js"></script>
	</head>

	<body>
	<section role="main" class="content-body" style="margin-top: 50px;">
	
					<!-- start: page -->
						<section class="panel">
							<header class="panel-heading">													
								<h2 class="panel-title">商品审核</h2>
							</header>
							<div class="panel-body">
								<table class="table table-bordered table-striped mb-none" id="datatable-default">
									<thead>
										<tr>
											<th>序号</th>
											<th>商品名称</th>
											<th>用户昵称</th>
											<th>店铺名称</th>
											<th class="hidden-phone center">手机号</th>
											<th class="hidden-phone center">上传日期</th>
											<th class="hidden-phone center">状态</th>
											<th class="hidden-phone center">备注</th>
											<th class="hidden-phone center">操作</th>
										</tr>
									</thead>
									<tbody>
										<%List<GoodsModel> goodsReview=(List)request.getAttribute("goodsReview");
										for(int i=1;i<=goodsReview.size();i++){
											GoodsModel gm=goodsReview.get(i-1);
										%>
										   <tr class="gradeA" >
											<td><%=i %></td>
											<td> <%=gm.get("g_name") %></td>
											<td> <%=gm.get("nick") %></td>
											<td> <%=gm.get("shop_name") %></td>
											<td class="center hidden-phone"><%=gm.get("phone") %></td>
											<td class="center hidden-phone"><%=gm.get("c_time") %></td>
											<td class="center hidden-phone"><%int audit=gm.getInt("audit"); 
											if(audit==0){%>
											<span class="label label-default">未审核</span>
											<%}else if(audit==1){%>
											<span class="label label-success">已审核-通过</span>
											<%}else{%>
											<span class="label label-warning">已审核-未通过</span>
											<%}%></td>
											<td class="center hidden-phone"><%=gm.get("n_reason") %></td>
											<td class="center hidden-phone"><a href="./goodsDetail?gid=<%=gm.get("goodsid")%>"><i class="fa fa-pencil"></i></a></td>			
										</tr>
										<%} %>
										
									</tbody>
									
								</table>
							</div>
						</section>
	</section>
	<!-- Specific Page Vendor -->
	<!-- Vendor -->
		<script src="../admin/js/jquery.js"></script>
		<script src="../admin/js/jquery-browser-mobile/jquery.browser.mobile.js"></script>
		<script src="../admin/js/bootstrap/js/bootstrap.js"></script>
		<script src="../admin/js/nanoscroller/nanoscroller.js"></script>
		<script src="../admin/js/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
		<script src="../admin/js/magnific-popup/magnific-popup.js"></script>
		<script src="../admin/js/jquery-placeholder/jquery.placeholder.js"></script>
		
		<!-- Specific Page Vendor -->
	<!--	<script src="js/select2.js"></script>-->
		<script src="../admin/js/jquery-datatables/media/js/jquery.dataTables.js"></script>
		<script src="../admin/js/jquery-datatables-bs3/assets/js/datatables.js"></script>
		
		<!-- Theme Base, Components and Settings -->
		<script src="../admin/js/theme.js"></script>
		
		<!-- Theme Custom -->
		<script src="../admin/js/theme.custom.js"></script>
		
		<!-- Theme Initialization Files -->
		<script src="../admin/js/theme.init.js"></script>


		<!-- Examples -->
		<script src="../admin/js/tables/examples.datatables.default.js"></script>
		<script src="../admin/js/tables/examples.datatables.row.with.details.js"></script>
		<script src="../admin/js/tables/examples.datatables.tabletools.js"></script>
	</body>

</html>